package com.origin.app

import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.origin.app.bean.CompanyPointBean
import com.origin.app.greendao.AppDaoManager
import com.origin.app.page.location_records.LocationRecordsActivity
import java.io.InputStream

class TestActivity : AppCompatActivity() {
    lateinit var myBigView: MyBigView

    companion object {
        fun launcher() {
            MyApplication.getInstance().getCurrentActivity()?.apply {
                val intent = Intent(this, TestActivity::class.java)
                startActivity(intent)
            }
        }
    }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test)
        myBigView = findViewById<MyBigView>(R.id.my_big)


    }

    fun getMipmapInputStream(context: Context, mipmapResId: Int): InputStream? {
        return try {
            val resources = context.resources
            val inputStream = resources.openRawResource(mipmapResId)
            inputStream
        } catch (e: Exception) {
            e.printStackTrace()
            null
        }
    }
}